projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
833442e
)
Use a simpler sandbox check
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 1 Nov 2018 17:31:10 +0000
(13:31 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 4 Nov 2018 13:17:32 +0000
(08:17 -0500)
No need to use the runtime dir and allocate a string.
We can just check in /.
gdk/gdk.c
patch
|
blob
|
history
diff --git
a/gdk/gdk.c
b/gdk/gdk.c
index b6c3bda972e4612b645bb141a6c470efd5c806a5..c67706779db060a6d265bc06c2ce002c9a9156b8 100644
(file)
--- a/
gdk/gdk.c
+++ b/
gdk/gdk.c
@@
-269,14
+269,7
@@
gdk_get_startup_notification_id (void)
gboolean
gdk_running_in_sandbox (void)
{
- char *path;
- gboolean ret;
-
- path = g_build_filename (g_get_user_runtime_dir (), "flatpak-info", NULL);
- ret = g_file_test (path, G_FILE_TEST_EXISTS);
- g_free (path);
-
- return ret;
+ return g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS);
}
/**